<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./WEB-INF/includes/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="metadata">
        <f:metadata>
            <f:event type="preRenderView" listener="#{businessTripBacking.fillForm(param.action)}"/>
        </f:metadata>
    </ui:define>

    <ui:define name="title">
        外地出差申请单--OfficeBoost System
    </ui:define>



    <ui:define name="content">
        <h:form>
            <font color="blue" size="3">
                <h:outputLabel value="外地出差申请单"/>
            </font>
            <h:panelGrid columns="2" frame="hsides">
                <h:outputLabel value="申请人"/>
                <h:outputText value="#{businessTripBacking.applier}"/>
                <h:outputLabel value="出差人姓名、职务、人数"/>
                <h:inputTextarea value="#{businessTripBacking.number}" rows="8" cols="40" readonly="#{businessTripBacking.disabled[0]}"/>
                <h:outputLabel value="出差任务"/>
                <h:inputTextarea value="#{businessTripBacking.task}" rows="8" cols="40" readonly="#{businessTripBacking.disabled[0]}"/>
                <h:outputLabel value="出差地点和具体单位"/>
                <h:inputTextarea value="#{businessTripBacking.destination}" rows="4" cols="40" readonly="#{businessTripBacking.disabled[0]}"/>
                <h:outputLabel value="预计出差天数"/>
                <h:inputText value="#{businessTripBacking.time_span}" size="45" readonly="#{businessTripBacking.disabled[0]}"/>
                <h:outputLabel value="系院审批意见"/>
                <h:inputTextarea value="#{businessTripBacking.school_opinion}" rows="8" cols="40"  readonly="#{businessTripBacking.disabled[1]}"/>
              
                
                <h:outputLabel value="学校审批意见"/>
                <h:inputTextarea value="#{businessTripBacking.college_opinion}" rows="8" cols="40" readonly="#{businessTripBacking.disabled[2]}" />
               
            </h:panelGrid>
           
                <h:selectOneRadio value="#{businessTripBacking.decision}">
                    <f:selectItem itemLabel="同意" itemValue="agree"/>
                    <f:selectItem itemLabel="拒绝" itemValue="refuse"/>
                </h:selectOneRadio>
           
            <h:commandButton value="提交" action="#"/>
        </h:form>
    </ui:define>



</ui:composition>
